// gui tin hieu den server [main.js]
socket.emit('send all users');

// nhan tin hieu tu server [tuan.js]
socket.on("send all users", function(data) {
    var listAllUser = '';
    for(var i=0;i<data.allUser.length;i++){
        listAllUser += '<tr>';
        listAllUser += '<td>' + data.allUser[i].userID + '</td>';
        listAllUser += '<td>' + data.allUser[i].username + '</td>';
        listAllUser += '<td>' + data.allUser[i].password + '</td>';
        listAllUser += '</tr>';
    }
    $('#o-day-ne').html(listAllUser);
});